<script setup lang="ts">
import { ElconfigProvider, dayjs } from "element-plus";
import { useAppStore } from "@/store/modules/app";
import defaultSettings from "@/settings";

const appStore = useAppStore();

dayjs.locale(appStore.locale);

const title = document.getElementsByTagName("title")[0];
title.innerText = import.meta.env.VITE_APP_TITLE;
</script>

<template>
  <el-config-provider :locale="appStore.locale" :size="appStore.size">
    <router-view />
  </el-config-provider>
</template>

<style>
.el-form,
.el-input__inner,
.el-table,
.el-button,
.el-input,
.el-dialog,
.el-card {
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
}
</style>
